package params

type SendSmsReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Mobile string `form:"mobile" json:"mobile" uri:"mobile" binding:"required"`
}
type LoginReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Mobile  string `form:"mobile" json:"mobile" uri:"mobile" binding:"required"`
	SmsCode string `form:"smsCode" json:"smsCode" uri:"smsCode" binding:"required"`
}

type UserInfoReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	UserId int `form:"userId" json:"userId" uri:"userId" binding:"required"`
}

type UpdateUserInfo struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	UserId   int    `form:"userId" json:"userId" uri:"userId" binding:"required"`
	NickName string `form:"nickName" json:"nickName" uri:"nickName" `
	Image    string `form:"image" json:"image" uri:"image" `
	Age      int    `form:"age" json:"age" uri:"age" `
	Email    string `form:"email" json:"email" uri:"smsCode" `
}
